Skip to content

ISerialization methods should take in const jsi::Value& (#56410)#56410

Closed
tsaichien wants to merge 1 commit intofacebook:mainfrom
tsaichien:export-D100222030
Closed

ISerialization methods should take in const jsi::Value& (#56410)#56410
tsaichien wants to merge 1 commit intofacebook:mainfrom
tsaichien:export-D100222030

Conversation

@tsaichien
Copy link
Copy Markdown
Contributor

@tsaichien tsaichien commented Apr 9, 2026

Summary:

Missed when we first added the ISerialization interface. In JSI APIs,
Value is generally passed in as a const reference. This makes it clear
that the actual reference, not the referent, is const.

Fixing the serialization methods to be consistent with the rest of JSI.

Changelog: [Internal]

Reviewed By: lavenzg

Differential Revision: D100222030

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 9, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Apr 9, 2026

@tsaichien has exported this pull request. If you are a Meta employee, you can view the originating Diff in D100222030.

@facebook-github-tools facebook-github-tools bot added p: Facebook Partner: Facebook Partner labels Apr 9, 2026
@meta-codesync meta-codesync bot changed the title ISerialization methods takes in const jsi::Value& ISerialization methods should take in const jsi::Value& (#56410) Apr 9, 2026
tsaichien added a commit to tsaichien/react-native that referenced this pull request Apr 9, 2026
…6410)

Summary:

Missed when we first added the `ISerialization` interface. In JSI APIs,
`Value` is generally passed in as a const reference. This makes it clear
that the actual reference, not the referent, is const.

Fixing the serialization methods to be consistent with the rest of JSI.

Changelog: [Internal]

Differential Revision: D100222030
@tsaichien tsaichien force-pushed the export-D100222030 branch from 15dddfa to e851957 Compare April 9, 2026 20:48
…6410)

Summary:
Pull Request resolved: facebook#56410

Missed when we first added the `ISerialization` interface. In JSI APIs,
`Value` is generally passed in as a const reference. This makes it clear
that the actual reference, not the referent, is const.

Fixing the serialization methods to be consistent with the rest of JSI.

Changelog: [Internal]

Reviewed By: lavenzg

Differential Revision: D100222030
@tsaichien tsaichien force-pushed the export-D100222030 branch from e851957 to 963a7b4 Compare April 9, 2026 20:53
meta-codesync bot pushed a commit to facebook/hermes that referenced this pull request Apr 13, 2026
Summary:
X-link: facebook/react-native#56410

Missed when we first added the `ISerialization` interface. In JSI APIs,
`Value` is generally passed in as a const reference. This makes it clear
that the actual reference, not the referent, is const.

Fixing the serialization methods to be consistent with the rest of JSI.

Changelog: [Internal]

Reviewed By: lavenzg

Differential Revision: D100222030

fbshipit-source-id: 2297d5c89b90db51269d216e6c3a822d9a4a93ab
meta-codesync bot pushed a commit to facebook/hermes that referenced this pull request Apr 13, 2026
Summary:
X-link: facebook/react-native#56410

Missed when we first added the `ISerialization` interface. In JSI APIs,
`Value` is generally passed in as a const reference. This makes it clear
that the actual reference, not the referent, is const.

Fixing the serialization methods to be consistent with the rest of JSI.

Changelog: [Internal]

Reviewed By: lavenzg

Differential Revision: D100222030

fbshipit-source-id: 2297d5c89b90db51269d216e6c3a822d9a4a93ab
meta-codesync bot pushed a commit to facebook/hermes that referenced this pull request Apr 13, 2026
Summary:
X-link: facebook/react-native#56410

Missed when we first added the `ISerialization` interface. In JSI APIs,
`Value` is generally passed in as a const reference. This makes it clear
that the actual reference, not the referent, is const.

Fixing the serialization methods to be consistent with the rest of JSI.

Changelog: [Internal]

Reviewed By: lavenzg

Differential Revision: D100222030

fbshipit-source-id: 2297d5c89b90db51269d216e6c3a822d9a4a93ab
@meta-codesync meta-codesync bot closed this in 36b3060 Apr 13, 2026
@facebook-github-tools facebook-github-tools bot added the Merged This PR has been merged. label Apr 13, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Apr 13, 2026

This pull request has been merged in 36b3060.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @tsaichien in 36b3060

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants